/**
 * Created by lenovo on 2017/12/18.
 */
define(['ngApp', 'ngHttp', 'jquery', 'ngConstant', 'ngAlert','bootstrap'], function (ngApp, ngHttp, JQ, ngConstant, ngAlert) {
    ngApp.controller("search", function ($scope, $http, $timeout, $rootScope, $state, $uibModal, commonFn, $cookies,$window) {

        //获取当前时间
        var now1=new Date();

        var month1 = now1.getMonth()+1;
        $scope.Now=now1.getFullYear()+'-'+month1 +'-'+now1.getDate();
        $scope.Now1=now1.getHours()+':'+now1.getMinutes()+':'+now1.getSeconds();
        console.log($scope.NowY);
        $scope.SetTimer=function(){
            $scope.$apply(function(){
                var now=new Date();

                $scope.Now1=now.getHours()+':'+now.getMinutes()+':'+now.getSeconds();
            });
        };
        $scope.SetTimerInterval=setInterval($scope.SetTimer,1000);

    })
});